\connect pcweek;
set datestyle to 'US';

-- delete contents of updates table
delete from updates;

-- load data into updates table
select 'starting updates data load' as message, time(CURRENT_TIMESTAMP) as time;
connecting to new database: pcweek
SET VARIABLE
DELETE 10000
message                   |time    
--------------------------+--------
starting updates data load|13:24:03
(1 row)


-- load updates
copy updates from '/dbimportdata/updates.dat' using delimiters ',';

-- recalc stats
vacuum analyze updates;
ERROR:  Can't create lock file.  Is another vacuum cleaner running?
	If not, you may remove the pg_vlock file in the /dbdata/pgsql/base/pcweek
	directory

-- check size of table
select count(*) from updates;
COPY
count
-----
10000
(1 row)


-- finished data load
select 'finished updates data load' as message, time(CURRENT_TIMESTAMP) as time;
message                   |time    
--------------------------+--------
finished updates data load|13:24:30
(1 row)


\q
